<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<title>配置管理</title>
		<link rel="stylesheet" href="__AGENT__/css/iconfont.css" />
		<link rel="stylesheet" href="__AGENT__/css/css.css" />
		<style>
			.shxx_row>.left{
				width: 100px;
			}
		</style>
	</head>

	<body>
		{include file="public/header" /}
		<div class="index_conbox">
			<div class="index_content clearfix">
				{include file="public/lefter" /}
				<div class="right">
					<div class="rigtop">
						<span class="title">配置管理</span>
					</div>
					<div class="indrig_con" style="position: relative;">
						<div class="shxx_item" style="padding-top: 20px;">
							<form action="" method="post" class="form-horizontal">
								<input type="hidden" name="fx_config" value="fx_config" />
								<input type="hidden" id="pay_fee" name="pay_fee" value="{$config7.pay_fee}" class="input-text">
								<input type="hidden" id="tj_user" name="tj_user" value="{$config7.tj_user}" class="input-text">
								<input type="hidden" id="tj_agent" name="tj_agent" value="{$config7.tj_agent}" class="input-text">
								<input type="hidden" id="tj_pt" name="tj_pt" value="{$config7.tj_pt}" class="input-text">
								<input type="hidden" id="tj_city" name="tj_city" value="{$config7.tj_city}" class="input-text">
								<input type="hidden" id="tj_province" name="tj_province" value="{$config7.tj_province}" class="input-text">
								<input type="hidden" id="tj_oem" name="tj_oem" value="{$config7.tj_oem}" class="input-text">
								<div class="shxx_row clearfix">
									<div >商家开店分佣</div>
								</div>
								<div class="shxx_row clearfix">
									<div class="left">年费设置</div>
									<div class="right">
										<span>
											<input type="text"  class="chax_input" placeholder="0" id="annual_fee" name="annual_fee" value="{$config7.annual_fee}" />
										</span>
									</div>
								</div>
								<div class="shxx_row clearfix">
									<div class="left">平台分佣</div>
									<div class="right">
										<span>
											<input type="text"  class="chax_input" placeholder="0" id="platform_openstore" name="platform_openstore" value="{$config7.platform_openstore}" />
										</span>
										<label>%</label>
									</div>
								</div>
								<div class="shxx_row clearfix">
									<div class="left">运营商分佣</div>
									<div class="right">
										<span>
											<input type="text"  class="chax_input" placeholder="0" id="main_agency_openstore" name="main_agency_openstore" value="{$config7.main_agency_openstore}" />
										</span>
										<label>%</label>
									</div>
								</div>
								<div class="shxx_row clearfix">
									<div class="left">服务商分佣</div>
									<div class="right">
										<span>
											<input type="text"  class="chax_input" placeholder="0" id="agency_openstore" name="agency_openstore" value="{$config7.agency_openstore}" />
										</span>
										<label>%</label>
									</div>
								</div>
								<div class="shxx_row clearfix">
									<div class="left">上级商家</div>
									<div class="right">
										<span>
											<input type="text"  class="chax_input" placeholder="0" id="up_agent_openstore" name="up_agent_openstore" value="{$config7.up_agent_openstore}" />
										</span>
										<label>%</label>
									</div>
								</div>
								<div class="shxx_row clearfix">
									<div class="left">合伙人分佣</div>
									<div class="right">
										<span>
											<input type="text" class="chax_input" placeholder="0" id="up_user_openstore" name="up_user_openstore" value="{$config7.up_user_openstore}"/>											
										</span>
										<label>%</label>
									</div>
								</div>
								
								<div class="shxx_row clearfix">
									<div >联盟广告分佣设置</div>
								</div>
								<div class="shxx_row clearfix">
									<div class="left">单客次广告费</div>
									<div class="right">
										<span>
											<input type="text"  class="chax_input" placeholder="0" id="once_ads" name="once_ads" value="{$config7.once_ads}" />
										</span>
									</div>
								</div>
								<div class="shxx_row clearfix">
									<div class="left">推荐会员佣金</div>
									<div class="right">
										<span>
											<input type="text"  class="chax_input" placeholder="0" id="up_ads_commission" name="up_ads_commission" value="{$config7.up_ads_commission}"" />
										</span>
										<label>%</label>
									</div>
								</div>
								<div class="shxx_row clearfix">
									<div class="left">联盟主佣金</div>
									<div class="right">
										<span>
											<input type="text"  class="chax_input" placeholder="0" id="union_main_commission" name="union_main_commission" value="{$config7.union_main_commission}" />
										</span>
										<label>%</label>
									</div>
								</div>
								<div class="shxx_row clearfix">
									<div class="left">服务商佣金</div>
									<div class="right">
										<span>
											<input type="text"  class="chax_input" placeholder="0" id="agency_commission" name="agency_commission" value="{$config7.agency_commission}" />
										</span>
										<label>%</label>
									</div>
								</div>
								<div class="shxx_row clearfix">
									<div class="left">运营商佣金</div>
									<div class="right">
										<span>
											<input type="text"  class="chax_input" placeholder="0" id="main_agency_commission" name="main_agency_commission" value="{$config7.main_agency_commission}" />
										</span>
										<label>%</label>
									</div>
								</div>
								<div class="shxx_row clearfix">
									<div class="left">平台佣金</div>
									<div class="right">
										<span>
											<input type="text" class="chax_input" placeholder="0" id="platform_commission" name="platform_commission" value="{$config7.platform_commission}""/>											
										</span>
										<label>%</label>
									</div>
								</div>
								<div class="row cl">
									<div style="text-align: center;">
										<button class="layui-btn" type="button" onclick="tijiao()" style="width: 100px;"><i class="fa fa-save"></i> 保存</button>
									</div>
								</div>
							</form>
						</div>
					</div>
				</div>
			</div>
		</div>

		{include file="public/footer" /}
	</body>

</html>
<script>
	//提交表单
	function tijiao(){
  		 $.ajax({
             	type:"post",
                url:"{:url('helps/save')}",
                data: $('.form-horizontal').serialize(),//表单数据
                success:function(data){
                    if(data.code==200){
                    	layer.msg(data.msg, {
						  icon: 1,
						  time: 1500 //2秒关闭（如果不配置，默认是3秒）
						}, function(){
							window.parent.location.reload();
						});
                    }else{
                    	layer.msg('失败！');//保存成功提示
                    }
                },error:function(data){
                	var a = data;
                }
        });
  		
  	}
</script>